<?php

	include "db.php";
	$table = "varformula";
        if(!($connection = @mysql_connect($hostname, $username, $password)))
	{
		die("Error: Cannot connect to database !!!");
	}		
	if (!(mysql_select_db($databaseName, $connection))) 
	{
		die("Error: Cannot select database name: $databaseName");
        }
        
        $strSQL = "select * from $table";
        mysql_query("set names 'utf8'");
        $result = mysql_query($strSQL, $connection);
	
        while($row = mysql_fetch_array($result))
        {
            $id = $row["ID"];
            $transfer = $row["transfer"];
            $insurance = $row["insurance"];
            $tax = $row["tax"];
            $rate = $row["rate"];
            $machining = $row["machining"];
            $profit = $row["profit"];
            $sellPlus =$row["sellplus"];
        }
        //echo $id."/".$transfer."/".$insurance."/".$tax."/".$rate."/".$machining."/".$profit."/".$sellPlus;
?>
